package com.jdy.haoduoaiteacher.view;//package com.jdy.haoduoaiteacher.view;
//
//import android.content.Context;
//import android.graphics.Canvas;
//import android.graphics.DashPathEffect;
//import android.graphics.Paint;
//import android.graphics.Path;
//import android.graphics.PathEffect;
//import android.util.AttributeSet;
//import android.view.View;
//
//import com.jdy.haoduoaiteacher.R;
//
///**
// * 画虚线 Created by ZQiang94 on 2015/12/20.
// */
//public class DashedLine extends View {
//
//  public int height = 1500;
//
//  public void setHeight(int height) {
//    this.height = height;
//  }
//
//  public DashedLine(Context context, AttributeSet attrs) {
//    super(context, attrs);
//  }
//
//  @Override
//  protected void onDraw(Canvas canvas) {
//    // TODO Auto-generated method stub
//    super.onDraw(canvas);
//    Paint paint = new Paint();
//    paint.setStrokeWidth((float) 10.0);
//    paint.setStyle(Paint.Style.STROKE);
//    paint.setColor(getResources().getColor(R.color.blue_dark_primary_color));
//    Path path = new Path();
//    path.moveTo(0, 0);
//    path.lineTo(0, height);
//    PathEffect effects = new DashPathEffect(new float[] { 4, 4, 4, 4 }, 2);
//    paint.setPathEffect(effects);
//    canvas.drawPath(path, paint);
//  }
// }